//
//  NSObject+Model.m
//  weekwendTravel
//
//  Created by Mr.Right on 15/10/22.
//  Copyright © 2015年 lq. All rights reserved.
//

#import "NSObject+Model.h"

@implementation NSObject (Model)
+(id)objectWithDict:(NSDictionary *)dict
{
    return [[self alloc] initWithDict:dict];
}
- (id)initWithDict:(NSDictionary *)dict
{
    if(self = [self init])
    {
        [self setValuesForKeysWithDictionary:dict];
    }
    return self;
}
- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    
}
@end
